home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-11-18 | 9.8 KB | 259 lines | [TEXT/MPS ] |
- C.S.M.P. Digest Thu, 30 Apr 92 Volume 1 : Issue 65
-
- Today's Topics:
-
- Using Macsbug ??
-
-
- The Comp.Sys.Mac.Programmer Digest is moderated by Michael A. Kelly.
-
- These digests are available (by using FTP, account anonymous, your email
- address as password) in the pub/mac/csmp-digest directory on ftp.cs.uoregon.
- edu. This is also the home of the comp.sys.mac.programmer Frequently Asked
- Questions list. The last several issues of the digest are available from
- sumex-aim.stanford.edu as well.
-
- These digests are also available via email. Just send a note saying that you
- want to be on the digest mailing list to mkelly@cs.uoregon.edu, and you will
- automatically receive each new digest as it is created.
-
- The articles in these digests are taken directly from comp.sys.mac.programmer.
- They are not edited; all articles included in this digest are in their original
- posted form. The only articles that are -not- included in these digests are
- those which didn't receive any replies (except those that give information
- rather than ask a question). All replies to each article are concatenated
- onto the original article in the order in which they were received. Article
- threads are not added to the digests until the last article added to the
- thread is at least one month old (this is to ensure that the thread is dead
- before adding it to the digests).
-
- Send administrative mail to mkelly@cs.uoregon.edu.
-
- -------------------------------------------------------
-
- From: yeongm2@aix.rpi.edu (Mengyik Yeong)
- Subject: Using Macsbug ??
- Date: Mon, 2 Mar 1992 04:51:50 GMT
-
- I have gathered from past discussions in this group that Macsbug will
- permit an elegant recovery from a hung application/program. Better
- than pressing the reset switch anyway. I also gathered that it has
- to be put in the system folder. This I have done and was rewarded
- with "Macsbug installed" at the Welcom Macintosh screen.
-
- Now my question! How do I use it to get back to the Finder after
- a hung application/program. I know I have to press the Interrupt
- switch. This I have tried and was put into Macsbug. Thats where
- I get stuck. I have gone thru the help in Macsbug, but I still can't
- figure out how to get back to the finder.
-
- I want to use this mainly with Think C 5.0, when I get totally
- stuck and can't break out any other way. Are there any precautions
- I should keep in mind when using Macsbug?
-
- Also, whats the purpose of the debugger-pref-resource file? I got
- Macsbug from ftp.apple.com and can't figure out this file.
-
- Thanks in advance.
-
- Mengyik
- yeongm2@rpi.edu
-
-
-
-
- - -------------------------
-
- From: dougm@descartes.cns.caltech.edu (Doug McNaught)
- Subject: Using Macsbug ??
- Organization: California Institute of Technology
- Date: Mon, 2 Mar 1992 14:28:45 GMT
-
- In article <ka4sa1g@rpi.edu> yeongm2@aix.rpi.edu (Mengyik Yeong) writes:
- [he installed MacsBug in his System Folder]
- >
- >Now my question! How do I use it to get back to the Finder after
- >a hung application/program. I know I have to press the Interrupt
- >switch. This I have tried and was put into Macsbug. Thats where
- >I get stuck. I have gone thru the help in Macsbug, but I still can't
- >figure out how to get back to the finder.
-
- Type 'es' (stands for ExitToShell) at the MacsBug prompt. This will get you
- back to the Finder about 95% of the time. Once back in the Finder,
- *immediately* choose "Restart" from the Special menu. There's no telling what
- your hung application has done to the system.
- >
- >I want to use this mainly with Think C 5.0, when I get totally
- >stuck and can't break out any other way. Are there any precautions
- >I should keep in mind when using Macsbug?
-
- Look at memory all you want, but don't change anything unless you know what
- you're doing. As an aside, there are times when you want to look at your
- variables in MacsBug--the trick I use is to drop into MacsBug, type
- 'atb GetNextEvent' and then 'g'. This drops you into the debugger at the point
- that your app calls GNE (substitute WNE if that's what you use, as we all
- should), so you're at a well-known point in the code, and your heap is going
- to be consistent.
-
- >Also, whats the purpose of the debugger-pref-resource file? I got
- >Macsbug from ftp.apple.com and can't figure out this file.
-
- It contains symbolic definitions and is where you put dcmd extensions if
- you want to use them. There's an Apple book on MacsBug that I plan to get when
- I can afford it--it's published as usual by Addison-Wesley.
-
- regards,
- doug
- --
- <><><><><><><><><><><><><><><>Go Skins!!<><><><><><><><><><><><><><><><>
- <> Doug McNaught dougm@descartes.caltech.edu <>
- <> Help!!! I'm addicted to *Spaceward Ho!* Is there a support group? <>
- <><><><><><><><><><><><><><><>Go Skins!!<><><><><><><><><><><><><><><><>
-
-
-
- - -------------------------
-
- From: dougm@descartes.cns.caltech.edu (Doug McNaught)
- Subject: Using Macsbug ??
- Organization: California Institute of Technology
- Date: Mon, 2 Mar 1992 15:47:48 GMT
-
-
- After my previous post on this subject, I received the following reply from
- Tim Hollebeek (s0136316@ursa.calvin.edu).
-
- - -------Begin quote from Tim Hollebeek--------
- In comp.sys.mac.programmer you write:
-
- [a previous poster asks how to get to the Finder from MacsBug]
-
- > Type 'es' (stands for ExitToShell) at the MacsBug prompt. This will get you
- >back to the Finder about 95% of the time. Once back in the Finder,
- >*immediately* choose "Restart" from the Special menu. There's no telling what
- >your hung application has done to the system.
-
- However, BE VERY CAREFULL ... TYPING 'ES' while in some toolbox routine can
- (about 1 in 100 by my experience) corrupt open resource files (YOUR program,
- YOUR system file, ESPECIALLY macro maker files).
-
- You should first do an 'atba' specifying all traps (type 'help atba' for info
- on how to do this). Then you will be in a spot where it is guaranteed to be
- safe to to an 'ES'.
-
- (*** For Mac Hackers: ES calls the _ExitToShell trap, which can cause problems
- if the computer is in some extremely funky intermediate state (processing an
- interupt, in the middle of a quick and dirty routine, etc.). The 'atba' makes
- sure you are out of the toolbox and in a semi-normal state. ***)
-
- Please post this, since I cannot post from here, but this is a relatively
- unknown problem with using the programmer's switch to save yourself from crashes, and I was forced to learn the truth the hard way.
-
- --
- - ----------------------------------------------------------------------------
- Tim Hollebeek
- s0136316@ursa.calvin.edu
-
- - ----------------------------------------------------------------------------
-
- - -------End quote from Tim Hollebeek----------
-
- Thanks, Tim! I'll try and remember that. Makes a lot of sense.
- regards,
- doug
-
- --
- <><><><><><><><><><><><><><><>Go Skins!!<><><><><><><><><><><><><><><><>
- <> Doug McNaught dougm@descartes.caltech.edu <>
- <> Help!!! I'm addicted to *Spaceward Ho!* Is there a support group? <>
- <><><><><><><><><><><><><><><>Go Skins!!<><><><><><><><><><><><><><><><>
-
-
-
- +++++++++++++++++++++++++++
-
- From: Ray.Arachelian@f204.n2603.z1.ieee.org (Ray Arachelian)
- Date: 14 Mar 92 04:15:00 GMT
- Organization: FidoNet node 1:2603/204 - Not Even Odd, Forest Hills NY
-
- to: doug@descartest.cns.caltech
-
- On 03-02-92, DOUGM@DESCARTES.CNS.CALTE wrote to ALL:
-
- D> It contains symbolic definitions and is where you put dcmd
- D> extensions if you want to use them. There's an Apple book on MacsBug
- D> that I plan to get when I can afford it--it's published as usual by
- D> Addison-Wesley.
-
- Are there any dcmd's out there that will let one assemble as well as
- disassemble? How about a ResEdit code editor pref that will let one
- assemble? I've seen the disassemble version of the code editor, but it
- isn't of much help.
-
- * Freddie 1.1 * You have been found guilty of commerce with the devil.
-
- - --
- =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
- Ray Arachelian - Internet: Ray.Arachelian@f204.n2603.z1.ieee.org
-
- +++++++++++++++++++++++++++
-
- From: ksand@apple.com (Kent Sandvik)
- Date: 30 Mar 92 03:02:15 GMT
- Organization: MacDTS Mongols
-
- In article <12932.29C6B9DC@ieee.org>, Ray.Arachelian@f204.n2603.z1.ieee.org (Ray
- Arachelian) writes:
- >
- > to: doug@descartest.cns.caltech
- >
- > On 03-02-92, DOUGM@DESCARTES.CNS.CALTE wrote to ALL:
- >
- > D> It contains symbolic definitions and is where you put dcmd
- > D> extensions if you want to use them. There's an Apple book on MacsBug
- > D> that I plan to get when I can afford it--it's published as usual by
- > D> Addison-Wesley.
- >
- > Are there any dcmd's out there that will let one assemble as well as
- > disassemble? How about a ResEdit code editor pref that will let one
- > assemble? I've seen the disassemble version of the code editor, but it
- > isn't of much help.
-
- One of our DTS engineers (former actually) wrote such a dcmd, I don't
- know when it will become shareware though (RSN I guess).
-
- Cheers,
- Kent Sandvik/DTS
-
- +++++++++++++++++++++++++++
-
- From: REEKES@applelink.apple.com (Jim Reekes)
- Date: 30 Mar 92 03:12:14 GMT
- Organization: Apple Computer, Inc.
-
- In article <22136@goofy.Apple.COM>, ksand@apple.com (Kent Sandvik) writes:
- >
- > In article <12932.29C6B9DC@ieee.org>, Ray.Arachelian@f204.n2603.z1.ieee.org (Ray
- > Arachelian) writes:
- > >
- > > to: doug@descartest.cns.caltech
- > >
- > > On 03-02-92, DOUGM@DESCARTES.CNS.CALTE wrote to ALL:
- > >
- > > D> It contains symbolic definitions and is where you put dcmd
- > > D> extensions if you want to use them. There's an Apple book on MacsBug
- > > D> that I plan to get when I can afford it--it's published as usual by
- > > D> Addison-Wesley.
- > >
- > > Are there any dcmd's out there that will let one assemble as well as
- > > disassemble? How about a ResEdit code editor pref that will let one
- > > assemble? I've seen the disassemble version of the code editor, but it
- > > isn't of much help.
-
- Use TMON.
-
- ---------------------------
-
- End of C.S.M.P. Digest
- **********************
-